package com.neusoft.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.neusoft.po.OrderDetailet;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderDetailetMapper {

	@Insert("insert into orderDetailet(orderId,foodId,quantity) values (#{orderId},#{foodId},#{quantity})")
	public int saveOrderDetailet(OrderDetailet orderDetailet);

	@Select("select * from orderDetailet where orderOd=#{orderOd}")
	public List<OrderDetailet> listOrderDetailetByOrderId(Integer orderOd);
}
